package com.book.bookmanager.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@ApiModel(
        value = "role对象",
        description = "角色对象"
)
@TableName("role")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {
    @ApiModelProperty("角色id")
    @TableField("role_id")
    private Integer role_id;
    @ApiModelProperty("角色名")
    @TableField("role_name")
    private String role_name;
    @ApiModelProperty("描述")
    @TableField("descr")
    private String descr;
    @TableField(exist = false)
    private List<Integer> menuIdList;
}
